package com.lyxy.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

//放行顺序根据类名的字符顺序

//用例类

//@WebFilter("/*")
public class AbcFilter implements Filter {
    //拦截过滤
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("AbcFilter放行前");
        filterChain.doFilter(servletRequest, servletResponse);
        System.out.println("AbcFilter放行后");
    }

}
